home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 December
/
PCWorld_2007-12_cd.bin
/
domacnost a kancelar
/
autoit
/
autoit-v3-setup.exe
/
Examples
/
Helpfile
/
_WordDocFindReplace.au3
< prev
next >
Wrap
Text File
|
2007-09-08
|
575b
|
15 lines
; *******************************************************
; Example 1 - Create a word window, open a document, find "this",
; replace all occurrences with "THIS", quit without saving changes.
; *******************************************************
;
#include <Word.au3>
$oWordApp = _WordCreate (@ScriptDir & "\Test.doc")
$oDoc = _WordDocGetCollection($oWordApp, 0)
$oFind = _WordDocFindReplace($oDoc, "this", "THIS")
If $oFind Then
MsgBox(0, "FindReplace", "Found and replaced.")
Else
MsgBox(0, "FindReplace", "Not Found")
EndIf
_WordQuit ($oWordApp, 0)